#ifndef _HEADER_WaterSys_H
#include "WaterSys.h"
#endif

/**
 * 供水系统测试
 * */
//先测试自来水箱加水
WaterSys waterSys;
char    logStr[400]="";

void setup()
{
    Serial.begin(9600);
    WaterSysConfig config;
    config.waterTank0_outPump_port = 0;
    config.waterTank0_waterLine_port = A0;
    config.waterTank0_waterSwitchIn_port = 1;
    config.waterTank0_waterSwitchOut_port = 2;
    config.waterTank1_outPump_port = 3;
    config.waterTank1_waterLine_port = A1;
    waterSys.init(&config);
    waterSys.toString(logStr);
    Serial.println(logStr);
}

void loop() 
{
    waterSys.autoWork();
    waterSys.toString(logStr);
    Serial.println(logStr);
    delay(3000);
}
